Carbon


SetMenuItemRefCon2

Header: Menus.h Carbon status: Unsupported

Sets additional application-specific information for a menu item.

OSErr SetMenuItemRefCon2 (
    MenuHandle inMenu, 
    SInt16 inItem, 
    UInt32 inRefCon2
);
inMenu

A handle to the menu that contains the menu item for which you wish to set information.

inItem

An integer representing the item number of the menu item.

inRefCon2

An unsigned 32-bit integer value. Pass a reference constant to associate with the menu item.

function result

A result code.

DISCUSSION

If you have data you want to associate with a menu item in addition to that set with the SetMenuItemRefCon function, you can do so using the SetMenuItemRefCon2 function.

See also the function GetMenuItemRefCon2.

VERSION NOTES

This function is aThis function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Not supported in Carbon. Not available in CarbonLib, but available when AppearanceLib 1.0 or later is installed. Exported by AppearanceLib 1.0 and later.

CARBON NOTES

To associate data with a menu item in Carbon, you should instead use the Get/SetMenuItemProperty functions.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)